<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
  <script>
    // screen.width; //屏幕的宽
    // screen.height; //屏幕的高
    console.log(screen.width,screen.height);
    // screen.availWidth; //屏幕可用宽度，屏幕的像素宽度减去系统部件高度之后的值
    // screen.availHeight; //屏幕可用高度，屏幕的像素高度减去系统部件高度之后的值（不包含任务栏的高度）
    console.log(screen.availWidth,screen.availHeight);
  </script>
</html>
